﻿using System;

namespace TestByWire.Test.Fakes
{
    public class Computer : IComputer
    {
        private readonly ICalculator _calculator;
#pragma warning disable 649
        private ICalculate2 _anotherCalculator;
        private ICalculate2 _yetAnotherCalculator;
#pragma warning restore 649

        public Computer(ICalculator calculator)
        {
            if (calculator == null)
            {
                throw new ArgumentNullException("calculator");
            }

            _calculator = calculator;
        }

        public ICalculator Calculator
        {
            get
            {
                return _calculator;
            }
        }

        public ICalculate2 GetLateBoundCalculator()
        {
            return _anotherCalculator;
        }

        public ICalculate2 GetYeatAnotherLateBoundCalculator()
        {
            return _yetAnotherCalculator;
        }
    }
}
